package com.example.android_demo2.room

import android.provider.UserDictionary
import androidx.room.*

@Dao
interface WordDao {
    @Insert
    fun insertData(vararg words: Word)

    @Update
    fun updateWords(vararg words: Word)

    @Delete()
    fun deleteWords(vararg words: Word)

    @Query("DELETE FROM WORD")
    fun deleteAllWords();

    @Query("SELECT * FROM WORD ORDER BY ID DESC")
    fun getAllWords(): List<Word>

}